
from signal import SIGINT, signal
from abc import ABC, abstractmethod

class SignalManager():

    def __init__(self, signal_handle):
        self.signal_handle = signal_handle

    def create_signal_manager(self):

        def signal_handle(signalnum, frame):
            # print(f'frame {frame}')
            if signalnum == SIGINT:
                self.sigint_handler(frame)

        signal(SIGINT, signal_handle)


class SignalManager_LEEK1(SignalManager):


    def __init__(self, ):
        pass

    def sigint_handler(self, frame):
        print(f'SignalManager_LEEK1 frame {frame}')
        exit()
